package com.ruoyi.app.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.contarctbill.service.IHouseContarctBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/app/contarctbill")
public class AppContarctBillController {
    @Autowired
    private IHouseContarctBillService houseContarctBillService;

    @PostMapping("/list")
    public AjaxResult currMonthBill(){
        try {
            Object currMonthBiiList = houseContarctBillService.getCurrMonthBiiList();
            return AjaxResult.success("",currMonthBiiList);
        } catch (Exception e) {
            return AjaxResult.error(e.getMessage());
        }
    }
}
